@width: 3.36rem;

.gray {
    background: #f4f6f6;
}

.white {
    background: #fff;
    .saleItem > div:first-child {
        border-radius: 0.12rem;
    }

    .liveItem:global(.section) {
        border-radius: 0.12rem;
    }
}

.wrap {
    min-height: 100vh;
    padding: 0.2rem 0.3rem 0 0.3rem;
}

.list {
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
}

.liveItem {
    width: @width;
    min-height: 6rem;
    float: left;
    cursor: pointer;
    margin-bottom: 0.2rem;
    position: relative;
    border-radius: 0.12rem;
    overflow: hidden;
    > section + div {
        height: 1.72rem;
        box-sizing: border-box;
    }
}

.saleItem {
    width: @width;
    margin-bottom: 0.2rem;
    min-height: 6rem;
    position: relative;
    margin-left: 0 !important;
    border-radius: 0.12rem;
    background: #fff;
    overflow: hidden;
    > div:first-child {
        padding-top: 133.33333%;
        border-radius: 0;
    }
}

.endHint {
    padding: 0.1rem 0;
    font-size: 0.28rem;
    color: #a9a9a9;
    text-align: center;
    display: block;
    width: 100%;
    padding-bottom: 0.5rem;
}

.recommandHead {
    @size: 0.3rem;
    display: flex;
    align-items: center;
    line-height: 2em;
    font-size: @size;
    font-weight: 500;
    position: relative;
    background: #f4f6f6;
    padding: 0.32rem 0.3rem 0 0.3rem;
    line-height: 1;
}

.scrollTop {
    position: fixed;
    left: 50%;
    bottom: 1.28rem;
    transform: translate3d(-50%, 0px, 0px);
    padding: 0.16rem 0.32rem;
    background-color: rgba(51, 51, 51, 0.9);
    font-size: 0.32rem;
    color: #fff;
    border-radius: 0.08rem;
    z-index: 1;
    display: flex;
    flex-flow: row nowrap;
    white-space: nowrap;
    align-items: center;

    :global(.needBottomFit) & {
        bottom: calc(1.28rem + 34px);
    }

    &.hide {
        animation: srcoll 0.3s ease forwards;
    }

    .arrowTop {
        width: 0.24rem;
        height: 0.24rem;
        display: inline-block;
        margin-left: 0.08rem;
        background-image: url(https://cdn.weipaitang.com/static/20200528c57728ac-bbeb-28acbbeb-aef6-839d9eabd4ce-W36H36);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        animation: sss 1s ease-out infinite;

        @keyframes sss {
            from {
                transform: translateY(2px);
                opacity: 1;
            }
            40% {
                transform: translateY(1px);
                opacity: 1;
            }
            80% {
                transform: translateY(0px);
                opacity: 0;
            }
            to {
                opacity: 0;
            }
        }
    }

    @keyframes srcoll {
        from {
            transform: translate3d(-50%, 0px, 0px);
        }
        to {
            transform: translate3d(-50%, -1rem, 0px);
            opacity: 0;
        }
    }
}

.recommendGoods {
    .recommendSkeleton {
        padding: 0;
    }
}
